from django.contrib import admin
from PublicTool.BaseAdmin import UserModelAdmin
import models


__author__ = 'czq'

#class NouserModelAdmin(admin.ModelAdmin):
#    exclude = ('addUser')
#

class ProvinceAdmin(admin.ModelAdmin):
    fields = ('name',)
admin.site.register(models.Province,ProvinceAdmin)


class CityAdmin(admin.ModelAdmin):
    fields = ('name','province','cityCode',)
admin.site.register(models.City,CityAdmin)

class DistrictAdmin(admin.ModelAdmin):
    fields = ('name','city',)
admin.site.register(models.District,DistrictAdmin)

class PositionTypeAdmin(admin.ModelAdmin):
    fields = ('name','rank','type',)
admin.site.register(models.PositionType,PositionTypeAdmin)

class LineTypeAdmin(admin.ModelAdmin):
    fields = ('name','rank',)
admin.site.register(models.LineType,LineTypeAdmin)